package com.yinxin.util;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.net.URL;

/**
 * 下载器
 */
public class WebDownLoader {
      public void downLoader(String url,String name){
         try {
            FileUtils.copyURLToFile(new URL(url),new File(name));
         } catch (IOException e) {
            e.printStackTrace();
            System.out.println("io出现异常，下载器出现问题");
         }
      }
}
